<?
class ObjArmadura {
	
	protected $data = array();
	
	function __construct (
		$nome, $genero, $ouro, $peso,
		$armorBonus, $max_dex_bonus, $check_penalty, $arcane_fail_chance,
		$speed_30ft, $speed_20ft
		) {
		
		$this->data['nome']		= $nome;
		$this->data['genero']	= $genero;
		$this->data['ouro']		= $ouro;
		$this->data['img']		= $img;
		
		$this->data['armorBonus']			= $armorBonus;
		$this->data['max_dex_bonus']		= $max_dex_bonus;
		$this->data['check_penalty']		= $check_penalty;
		$this->data['arcane_fail_chance']	= $arcane_fail_chance;
		$this->data['speed_30ft']			= $speed_30ft;
		$this->data['speed_20ft']			= $speed_20ft;
		$this->data['peso']					= $peso;
	}
	
	public function getValue($atrib) {
		return $this->data[$atrib];
	}
	
	public function toArray() {
		return $this->data;
	}
}
?>